home *** CD-ROM | disk | FTP | other *** search
- // fncount.cpp -- Count function calls
-
- #include <iostream.h>
-
- void test(void);
-
- main()
- {
- for (int i = 0; i < 10; i++)
- test();
- }
-
- void test(void)
- {
- static int count = 0;
- count++;
- cout << "\nFunction call # " << count;
- }
-
-
- // Copyright (c) 1990 by Tom Swan. All rights reserved
- // Revision 1.00 Date: 12/08/1990 Time: 04:17 pm
-
- // Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
- // Converted for Borland C++ 2.0
-
-